<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Grid</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title=""></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/Accordion.html">Accordion</a></li>
            
                <li><a href="../classes/AutoComplete.html">AutoComplete</a></li>
            
                <li><a href="../classes/Button.html">Button</a></li>
            
                <li><a href="../classes/Carousel.html">Carousel</a></li>
            
                <li><a href="../classes/ColorPicker.html">ColorPicker</a></li>
            
                <li><a href="../classes/Combobox.html">Combobox</a></li>
            
                <li><a href="../classes/DateTimePicker.html">DateTimePicker</a></li>
            
                <li><a href="../classes/Grid.html">Grid</a></li>
            
                <li><a href="../classes/ListView.html">ListView</a></li>
            
                <li><a href="../classes/Popover.html">Popover</a></li>
            
                <li><a href="../classes/ProgressBar.html">ProgressBar</a></li>
            
                <li><a href="../classes/RichTextEditor.html">RichTextEditor</a></li>
            
                <li><a href="../classes/ScrollSpy.html">ScrollSpy</a></li>
            
                <li><a href="../classes/Select.html">Select</a></li>
            
                <li><a href="../classes/SideBar.html">SideBar</a></li>
            
                <li><a href="../classes/Slider.html">Slider</a></li>
            
                <li><a href="../classes/Spinner.html">Spinner</a></li>
            
                <li><a href="../classes/Tab.html">Tab</a></li>
            
                <li><a href="../classes/ToolBar.html">ToolBar</a></li>
            
                <li><a href="../classes/Tooltip.html">Tooltip</a></li>
            
                <li><a href="../classes/Tree.html">Tree</a></li>
            
                <li><a href="../classes/Wizard.html">Wizard</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>Grid Class</h1>
<div class="box meta">
    

    

    
        <div class="foundat">
            Defined in: <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l8"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:8</code></a>
        </div>
    

    

    
</div>



<div class="box intro">
    <p>表格组件</p>

</div>


    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_Grid" class="method item">
    <h3 class="name"><code>Grid</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l8"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:8</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
        <div class="example">
            <h4>Example:</h4>

            <div class="example-content">
                <p>js代码
    var buttons = [
            {content: &#39;<button class="btn btn-primary" type="button"><span class="glyphicon glyphicon-plus"><span>创建</button>&#39;, action: &#39;add&#39;},
            {content: &#39;<button class="btn btn-success" type="button"><span class="glyphicon glyphicon-edit"></span>&nbsp;修改</button>&#39;, action: &#39;modify&#39;},
            {content: &#39;<button class="btn btn-danger" type="button"><span class="glyphicon glyphicon-remove"></span>&nbsp;删除</button>&#39;, action: &#39;delete&#39;}
        ];</p>
<pre class="code prettyprint"><code>    var columns = [
        {title : &quot;角色名称&quot;,name : &quot;name&quot;,width : 250}, 
        {title : &quot;角色描述&quot;,name : &quot;roleDesc&quot;,width : 250}
    ];
$(&quot;#myGrid&quot;).grid({
         identity: &#39;id&#39;,
        columns: columns,
        buttons: buttons,
        querys: [{title: &#39;角色名称&#39;, value: &#39;name&#39;},{title: &#39;角色描述&#39;, value: &#39;roleDesc&#39;}],
        isUserLocalData:true,            //如果为false，则发送ajax请求到url端，获取数据，否则，则视为获取静态数据
        url:&quot;../../common/data.js&quot;,
        localData:staticData
        ,isShowIndexCol:true
        //,lockWidth: true
   });

   html代码
   &lt;div id=&quot;myGrid&quot;&gt;&lt;/div&gt;</code></pre>

            </div>
        </div>
    
</div>

    </div>


<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                        
                            <li class="index-item method">
                                <a href="#method__initPageNo">_initPageNo</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_destory">destory</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_down">down</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getAllItems">getAllItems</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getChildrenCount">getChildrenCount</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getIndexByIdentityValue">getIndexByIdentityValue</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getItemByIndex">getItemByIndex</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getItemsFromLocalData">getItemsFromLocalData</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getRowByIndex">getRowByIndex</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_initTreeItems">initTreeItems</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_insertRows">insertRows</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_refresh">refresh</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeRows">removeRows</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_renderDatas">renderDatas</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_renderRows">renderRows</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_search">search</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_selectedRows">selectedRows</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_selectedRowsIndex">selectedRowsIndex</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_selectedRowsNo">selectedRowsNo</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_up">up</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_updateRows">updateRows</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties">
                        
                            <li class="index-item property">
                                <a href="#property_autoLoad">autoLoad</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_identity">identity</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_isShowButtons">isShowButtons</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_isShowIndexCol">isShowIndexCol</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_isShowPages">isShowPages</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_isUserLocalData">isUserLocalData</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_loadingText">loadingText</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_lockWidth">lockWidth</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_method">method</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_noDataText">noDataText</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_pageNo">pageNo</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_pageSize">pageSize</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_showPage">showPage</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method__initPageNo" class="method item">
    <h3 class="name"><code>_initPageNo</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l432"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:432</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>初始化分页</p>

    </div>

    

    

    
</div>

                
                    <div id="method_destory" class="method item">
    <h3 class="name"><code>destory</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l789"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:789</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>销毁表格</p>

    </div>

    

    

    
</div>

                
                    <div id="method_down" class="method item">
    <h3 class="name"><code>down</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>索引</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l858"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:858</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>下移</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">索引</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_getAllItems" class="method item">
    <h3 class="name"><code>getAllItems</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l679"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:679</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回所有行数据。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getChildrenCount" class="method item">
    <h3 class="name"><code>getChildrenCount</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l625"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:625</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>树形表格获取子节点下的所有数量</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getIndexByIdentityValue" class="method item">
    <h3 class="name"><code>getIndexByIdentityValue</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l752"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:752</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>根据索引值返回索引列表</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getItemByIndex" class="method item">
    <h3 class="name"><code>getItemByIndex</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>index</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l771"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:771</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>根据索引返回一行数据</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">index</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>json对象</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getItemsFromLocalData" class="method item">
    <h3 class="name"><code>getItemsFromLocalData</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l417"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:417</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>根据开始结束记录数从本地数据获取数据</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getRowByIndex" class="method item">
    <h3 class="name"><code>getRowByIndex</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>索引值</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l761"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:761</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>根据索引返回一行</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">索引值</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>jQuery对象</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_initTreeItems" class="method item">
    <h3 class="name"><code>initTreeItems</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l639"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:639</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>初始化树形数据</p>

    </div>

    

    

    
</div>

                
                    <div id="method_insertRows" class="method item">
    <h3 class="name"><code>insertRows</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>items(Array)</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l699"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:699</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>新增一行或多行记录</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">items(Array)</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_refresh" class="method item">
    <h3 class="name"><code>refresh</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l780"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:780</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>刷新表格</p>

    </div>

    

    

    
</div>

                
                    <div id="method_removeRows" class="method item">
    <h3 class="name"><code>removeRows</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>indexs(Array)</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l723"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:723</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>移除多行</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">indexs(Array)</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_renderDatas" class="method item">
    <h3 class="name"><code>renderDatas</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l504"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:504</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>渲染数据</p>

    </div>

    

    

    
</div>

                
                    <div id="method_renderRows" class="method item">
    <h3 class="name"><code>renderRows</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l548"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:548</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>渲染表格数据</p>

    </div>

    

    

    
</div>

                
                    <div id="method_search" class="method item">
    <h3 class="name"><code>search</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>查询条件json对象</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l796"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:796</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>外部查询</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">查询条件json对象</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_selectedRows" class="method item">
    <h3 class="name"><code>selectedRows</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l654"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:654</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回选择行数据的数组。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_selectedRowsIndex" class="method item">
    <h3 class="name"><code>selectedRowsIndex</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l687"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:687</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回选择行索引的数组。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_selectedRowsNo" class="method item">
    <h3 class="name"><code>selectedRowsNo</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l667"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:667</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回选择行的序号列表</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_up" class="method item">
    <h3 class="name"><code>up</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>索引</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l807"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:807</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>上移</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">索引</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_updateRows" class="method item">
    <h3 class="name"><code>updateRows</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>currentKeyId</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>item</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l738"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:738</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>更新多行数据</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">currentKeyId</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
            </div>
        

        
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                
                    <div id="property_autoLoad" class="property item">
    <h3 class="name"><code>autoLoad</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l103"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:103</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否表格准备好时加载数据</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_identity" class="property item">
    <h3 class="name"><code>identity</code></h3>
    <span class="type">String</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l135"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:135</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>主键字段</p>

    </div>

    
        <p><strong>Default:</strong> &#x27;id&#x27;</p>
    

    

    
</div>

                
                    <div id="property_isShowButtons" class="property item">
    <h3 class="name"><code>isShowButtons</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l95"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:95</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否显示功能按钮</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_isShowIndexCol" class="property item">
    <h3 class="name"><code>isShowIndexCol</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l87"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:87</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否显示索引列</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_isShowPages" class="property item">
    <h3 class="name"><code>isShowPages</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l111"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:111</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否显示分页</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_isUserLocalData" class="property item">
    <h3 class="name"><code>isUserLocalData</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l119"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:119</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否使用本地数据源</p>

    </div>

    
        <p><strong>Default:</strong> false</p>
    

    

    
</div>

                
                    <div id="property_loadingText" class="property item">
    <h3 class="name"><code>loadingText</code></h3>
    <span class="type">String</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l71"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:71</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>数据载入时的提示文字</p>

    </div>

    
        <p><strong>Default:</strong> &#x27;正在载入...&#x27;</p>
    

    

    
</div>

                
                    <div id="property_lockWidth" class="property item">
    <h3 class="name"><code>lockWidth</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l143"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:143</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否锁定列宽度</p>

    </div>

    
        <p><strong>Default:</strong> false</p>
    

    

    
</div>

                
                    <div id="property_method" class="property item">
    <h3 class="name"><code>method</code></h3>
    <span class="type">String</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l127"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:127</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>请求数据方式</p>

    </div>

    
        <p><strong>Default:</strong> &#x27;POST&#x27;</p>
    

    

    
</div>

                
                    <div id="property_noDataText" class="property item">
    <h3 class="name"><code>noDataText</code></h3>
    <span class="type">String</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l79"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:79</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>没有数据时的提示文字</p>

    </div>

    
        <p><strong>Default:</strong> &#x27;没有数据&#x27;</p>
    

    

    
</div>

                
                    <div id="property_pageNo" class="property item">
    <h3 class="name"><code>pageNo</code></h3>
    <span class="type">Integer</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l159"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:159</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>当前页，从1开始</p>

    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property_pageSize" class="property item">
    <h3 class="name"><code>pageSize</code></h3>
    <span class="type">Integer</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l151"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:151</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>每页显示多少条数据，采用物理分页方式</p>

    </div>

    
        <p><strong>Default:</strong> 10</p>
    

    

    
</div>

                
                    <div id="property_showPage" class="property item">
    <h3 class="name"><code>showPage</code></h3>
    <span class="type">Integer</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_Grid.js.html#l167"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_Grid.js:167</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>分页时显示多少页</p>

    </div>

    
        <p><strong>Default:</strong> 4</p>
    

    

    
</div>

                
            </div>
        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
